<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang='cs-CZ'>
<head>
    <meta http-equiv="content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="content-language" content="cs" />

        <meta name='authors' content='Filip Výborný' />

	<meta name="description" content="Administrační rozhraní" />

        <%= csrf_meta_tag %>

        <%= stylesheet_link_tag :defaults_admin, :media => "all" %>

        <%= javascript_include_tag :defaults_admin %>

        <%= yield :head %>

    <title><%= content_for?(:title) ? yield(:title) + " -" : "" %> Administrační rozhraní - <%= request.domain %></title>
</head>
<body>
  <div id="page_top_outer">
    <div id="page_top">
      <div id="logo">
        <%= link_to raw("Administrační <span>rozhraní</span>"), admin_path, :title => "Úvodní strana administrace" %>
      </div>
      <div id="account_bar">
        <p>Jste přihlášeni jako: <span id="name"><%= current_user.user_info.whole_name %></span><br />
           od <%= raw(l current_user.current_login_at, :format => :short) %>
          </p>
      </div>
    </div>
  </div>

  <div id="nav_outer_repeat">
    <div id="nav_outer">
      <div id="nav_right">
          <%= link_to image_tag("/assets/admin/shared/nav/home.png", :alt => "Prezentace"), root_path, :title => "Prezentace" %>
          <div class="nav_divider"></div>
          <%= link_to image_tag("/assets/admin/shared/nav/log_out.png", :alt => "Odhlásit se"), logout_path, :title => "Odhlásit se" %>
      </div>
      <div id="nav">
        <%= render :partial => "admin/shared/main_menu" %>
      </div>
    </div>
  </div>

  <div id="content_outer">
    <div id="content">

      <div id="tree">
        <%= raw(render_crumbs) %>
      </div>

      <% flash.each do |type, message| %>
        <%= content_tag :div, raw(message), :class => type %>
      <% end %>

      <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content_table">
        <tr>
          <th rowspan="3" id="content_left_shadow"></th>
          <th id="content_left_top"></th>
          <th id="content_top"></th>
          <th id="content_right_top"></th>
          <th rowspan="3" id="content_right_shadow"></th>
        </tr>
        <tr>
          <th id="content_left"></th>
          <th id="content_center">
            <div style="float: left"><%= yield :layout %></div>

            <% render "sidebar" %>
            
            <% if content_for?(:sidebar) %>
              <div id="sidebar">
                <div id="sidebar_header"><%= @sidebar_title %></div>
                <div id="sidebar_content">
                  <%= yield(:sidebar) %>
                </div>
                <div id="sidebar_bottom"></div>
              </div>

              <span style="clear: left"></span>
            <% end %>
          </th>
          <th id="content_right"></th>
        </tr>
        <tr>
          <th id="content_left_bottom"></th>
          <th id="content_bottom"></th>
          <th id="content_right_bottom"></th>
        </tr>
      </table>
    </div>
  </div>

  <div id="footer">
    <div id="footer_left">
      Administrátor: Filip Výborný, <span id="email">svains@gmail.com</span>
    </div>
  </div>
</body>
</html> 